<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 */
/**
 * Data model for table "coverage_suites"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 *
 * @property-read mixed Id
 * @property-read mixed Name
 * @property-read mixed Tests
 * @property-read mixed Assertion
 * @property-read mixed Failures
 * @property-read mixed Errors
 * @property-read mixed Time
 * @property-read mixed File
 */
abstract class BaseCoverageSuites extends BaseRecord
{
    const TABLE_NAME = "coverage_suites";

    public function __construct()
    {
        parent::__construct(self::TABLE_NAME);
    }

    protected function initFields()
    {
        $this->hasColumn('id', 'PUA:int(3)');
        $this->hasColumn('name', 'N:varchar(255)');
        $this->hasColumn('tests', 'UN:int(3)');
        $this->hasColumn('assertion', 'UN:int(3)');
        $this->hasColumn('failures', 'UN:int(3)');
        $this->hasColumn('errors', 'UN:int(3)');
        $this->hasColumn('time', 'N:float');
        $this->hasColumn('file', 'N:varchar(255)');
    }

    public function initRelations()
    {
    }

    public function getById($id)
    {
        return parent::getById($id, 'CoverageSuites');
    }

    public function getByParams( $params, $type = ORMRecord::ONE_RECORD, $limit = null )
    {
        return parent::getByParams( $params, $type, $limit, 'CoverageSuites');
    }

    public function getAll( $limit = null )
    {
        return parent::getAll( $limit, 'CoverageSuites' );
    }
}